package com.itheima.service.impl;

import com.itheima.service.UserService;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @author cp
 * @className UserServiceImpl
 * @description TODO
 * @create 2020/12/5 11:22
 **/

@Component("userService")
@Scope("singleton")
public class UserServiceImpl implements UserService{
    public void save() {
        System.out.println("running!!!");
    }

//    @PostConstruct
//    public void init(){
//        System.out.println("init!!!");
//    }
//
//    @PreDestroy
//    public void destroy(){
//        System.out.println("destroy!!!");
//    }
}
